* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Consolas, 'SimHei', monospace;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
    overflow: hidden;
}

/* 图片及倒计时字鼠标指针关闭 */
img,
#time {
    pointer-events: none;
}

button {
    cursor: pointer;
    width: 250px;
    font-size: 1.5rem;
    height: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: #fff;
}

input {
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.2);
    width: 250px;
    height: 2.5rem;
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 10px;
    text-align: center;
    /* 隐藏多余文字 */
    overflow: hidden;
    /* 若有隐藏的多余文字，则显示省略号 */
    text-overflow: ellipsis;
    transition: 0.5s;
}

/* 触碰输入栏时的背景效果加深 */
input:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 点击输入栏后的背景效果及宽度变化 */
input:focus {
    background-color: #fff;
    width: 300px;
    height: 3rem;
}

.container {
    width: 400px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: hsla(0, 0%, 100%, 0.15);
    box-shadow: inset 0 0 15px 0 #fff;
}

.top,
.bottom {
    flex: 1;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    /* 用于配合子元素的absolute实现遮盖 */
    position: relative;
}

/* 上方部分 */

/* 倒计时 */
#time {
    font-size: 7rem;
    position: absolute;
    /* 初始隐藏 */
    opacity: 0;
}


/* 下方部分 */

/* 地址栏及跳转按钮居中 */
#URL,
.jump {
    margin: 0 auto 50px auto;
}

.button1,
.button2 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* 下方stop部分，定位absolute且均为0,与.bottom父元素实现遮罩重叠效果 */
.button2 {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    /* 隐藏stop按钮 */
    opacity: 0;
    z-index: 1;
}

/* 防止隐藏的stop按钮遮挡输入地址栏 */
.button1 {
    position: relative;
    z-index: 2;
}

/* 点击jump后的样式部分
.container.next .photo{
    opacity: 0;
}
.container.next #time{
    opacity: 1;
} */